import axios from '@/libs/api.request'

export const getTaskList = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/download/task/list',
    data,
    method: 'post'
  })
}

export const delTask = data => axios.request({
  url: '/oms/merchant/crs/download/task/delete',
  method: 'post',
  data
})

export const addTask = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/download/async',
    method: 'post',
    data
  })
}

export const getTaskModule = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/download/taskmodule/list',
    method: 'post',
    data
  })
}
